public class homework0 {

 /**
  * @param args
  */
	
 public static void main(String[] args) 
 { 
  int x =0;
  long fac = 1;
  
  for(x=1; x<=10; x++)
  {
   fac=fac*x;
   System.out.println(x+"! = " +fac);
  }

 }
 

}